﻿using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.Web.Configuration.Website
{
    public class SiteConfig
    {
        #region fields images site
        private string httpSite = "";
        private string httpsSite = "";
        #endregion

        #region cache server for resources
        /// <summary>
        /// Gets or sets the HTTP cache resource server with no trailing '/' or '\'.
        /// </summary>
        /// <value>The HTTP cache resource server.</value>
        [XmlElement("httpSite")]
        public string HttpSite
        {
            get { return httpSite; }
            set { httpSite = value.TrimEnd(' ', '/', '\\'); }
        }
        /// <summary>
        /// Gets or sets the HTTPS cache resource server with no trailing '/' or '\'.
        /// </summary>
        /// <value>The HTTPS cache resource server.</value>
        [XmlElement("httpsSite")]
        public string HttpsSite
        {
            get { return httpsSite; }
            set { httpsSite = value.TrimEnd(' ', '/', '\\'); }
        }

        #endregion

    }
}
